package com.ffggffgfv.backend.dto;

import java.math.BigDecimal;

/**
 * 购物车显示数据传输对象
 */
public class CartDisplayDTO {

    private Long id;                // 购物车项ID
    private Long productId;         // 商品ID
    private String productName;     // 商品名称
    private String productImage;    // 商品图片
    private BigDecimal price;       // 价格
    private Integer quantity;       // 数量
    private Boolean selected;       // 是否选中
    private BigDecimal totalPrice;  // 小计金额

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }
}
